<%@page import="org.biojava.services.das.dao.CourseManager"%>
<jsp:useBean id="course" class="dasregistry.CourseRegistrationBean" scope="request"/>
<jsp:setProperty name="course" property="*"/>


<% String title="DAS workshop 2008 - registration";
   String header = title;
%>
<%@ include file="pagehead.jsp" %>    
<% 
if ( email == null ) {
	session.setAttribute("from_page","course_register.jsp");
	session.setAttribute("message","Please login first, before you can register for the DAS workshop");
    response.sendRedirect("login.jsp");		
    return;
    
} else {
	
	CourseManager courseManager = new CourseManager();
	
	courseManager.registerOrUpdate(course,email);
	
	
%>

	
	
<%	
}

response.sendRedirect("course_register.jsp");		


%>


<%@ include file="sangerfooter.jsp" %>
